-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix fiat values in testnet visibility #26273
fix: fix fiat values in testnet visibility #26273
Conversation
Quality Gate passedIssues Measures |
ui/pages/confirmations/components/confirm-subtitle/confirm-subtitle.js
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm-subtitle/confirm-subtitle.test.js
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/fee-details-component/fee-details-component.js
Outdated
Show resolved
Hide resolved
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
@@ -168,18 +173,15 @@ export default function FeeDetailsComponent({ | |||
{t('layer1Fees')} | |||
</Text> | |||
} | |||
detailText={ | |||
useCurrencyRateCheck && renderTotalDetailText(layer1GasFee) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useCurrencyRateCheck
is already checked in getShouldShowFiat
selector hence am removing this.
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
tag: 'div', | ||
}); | ||
await driver.clickElement({ text: 'Fiat', tag: 'label' }); | ||
// We now need to enable "Show fiat on testnet" if we are using testnets (and since our custom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, 0x539
(the network used for e2e tests) is not testnet and not in the testnet list (See here https://github.com/MetaMask/metamask-extension/blob/24945-bug-fiat-values-continue-to-show-despite-show-conversion-on-test-networks-advanced-settings-being-disabled/shared/constants/network.ts#L1033)
0x539
is also not custom network (See getIsCustomNetwork
function here https://github.com/MetaMask/metamask-extension/blob/24945-bug-fiat-values-continue-to-show-despite-show-conversion-on-test-networks-advanced-settings-being-disabled/ui/selectors/selectors.js#L2372)
Since this PR's aim is to correct previous getShouldShowFiat
selector, this means that this e2e test must toggle useCurrencyRateCheck
to make it work, and it's done via withConversionRate Enabled/Disabled
fixture.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26273 +/- ##
===========================================
- Coverage 69.96% 69.95% -0.00%
===========================================
Files 1442 1441 -1
Lines 50100 50098 -2
Branches 14006 14007 +1
===========================================
- Hits 35049 35046 -3
- Misses 15051 15052 +1 ☔ View full report in Codecov by Sentry. |
Builds ready [114e26f]
Page Load Metrics (1834 ± 100 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
bad0757
…spite-show-conversion-on-test-networks-advanced-settings-being-disabled
Quality Gate passedIssues Measures |
Builds ready [b3f44ac]
Page Load Metrics (1697 ± 69 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR goal is to fix visibility issue of viat values in testnet. For more info please visit task here #24945
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist